#ifndef DETECT_H
#define DETECT_H

#ifdef __cplusplus
extern "C" {
#endif

#define MAX_FACES 100  // 设置最大脸部数量

    typedef struct {
        int width;
        int height;
        int num_faces;
        int x[MAX_FACES];
        int y[MAX_FACES];
        int face_width[MAX_FACES];
        int face_height[MAX_FACES];
    } DetectionResult;

    typedef struct {
        int width;
        int height;
        char* img_data_ptr;
    } ImageData;

    // Function to detect faces from an image file path
    int FaceDetect();



#ifdef __cplusplus
}
#endif

#endif
